package com.eg366.cglib;

import net.sf.cglib.proxy.Enhancer;

public class InfoManagerAuthFactory {

	public static InfoManager getInstance(AuthProxy proxy) {
		Enhancer enhancer = new Enhancer();
		enhancer.setSuperclass(InfoManager.class);
		enhancer.setCallback(proxy);
		return (InfoManager) enhancer.create();
	}
}
